package com.yhy.common.log.model;

import com.yhy.common.core.result.Result;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

@ApiModel("追踪日志对象")
@EqualsAndHashCode(callSuper = true)
@Data
@SuppressWarnings("rawtypes")
public class TrackLog extends Result {

    @ApiModelProperty("请求类型 FEIGN、WEB")
    private String Type;

    @ApiModelProperty("接口title")
    private String title;

    @ApiModelProperty("处理接口的方法名")
    private String handlerMethodName;

    @ApiModelProperty("请求方式")
    private String requestMethod;

    @ApiModelProperty("接口路径")
    private String requestUri;

    @ApiModelProperty("请求参数")
    private String requestParam;

    @ApiModelProperty("请求头")
    private transient Map<String, String> requestHeader;

    @ApiModelProperty("响应body")
    private transient Result responseBody;

}
